#!/usr/bin/python3
# -*- coding: utf-8 -*-
"""
<<<<<<< HEAD
@File Name  : c_video.py
=======
@File Name  : 9c_video.py
>>>>>>> 0f663d9cdbaca672411c54e3f484639a12f0b328
@Author     : LeeCQ
@Date-Time  : 2019/11/30 22:20

"""
<<<<<<< HEAD
from root_class import Root9C


class Video9C(Root9C):
    """
        [
        {'d_id',
        'd_type',
        'd_name',
        'd_pic',
        'd_playurl',
        'd_time'
        }
    ]
    """
    def __init__(self):
        self.video_tags = [_t for _t in self.txt2tag() if _t[0] == 'video_list']

    def get_all_json_video(self):
        return [{_t[1]: self.json_one_txt(self.DIR_SUP + _t[2])} for _t in self.video_tags]

    def get_json_inOne(self):
        _temp = []
        [_temp.extend(self.json_one_txt(self.DIR_SUP + _t[2])) for _t in self.video_tags]
        return _temp

    def get_m3u8(self):
        pass


if __name__ == '__main__':
    r = Video9C()
    print(r.get_all_json_video())
=======
>>>>>>> 0f663d9cdbaca672411c54e3f484639a12f0b328
